package com.group.controller;

import com.group.entity.CommonResult;
import com.group.entity.user.UserAccountEntity;
import com.group.service.UserAccountService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserAccountService userAccountService;
    @PostMapping("/login")
    public CommonResult<?> userLogin(@RequestBody UserAccountEntity userAccountEntity){
        return this.userAccountService.userLogin(userAccountEntity);
    }
}
